using System.Threading.Tasks;
using JlPay.Sdk.Core;
using JlPay.Sdk.Models.Marketing;

namespace JlPay.Sdk.Services.Marketing
{
    /// <summary>
    /// 营销活动查询服务
    /// </summary>
    public class MarketingActivityQueryService : BaseService
    {
        /// <summary>
        /// 创建营销活动查询服务
        /// </summary>
        /// <param name="config">配置对象</param>
        public MarketingActivityQueryService(Config config) : base(config)
        {
        }

        /// <summary>
        /// 营销活动查询接口
        /// </summary>
        /// <param name="request">请求对象</param>
        /// <returns>响应对象</returns>
        public async Task<MarketingActivityQueryResponse> MarketingActivityQueryAsync(MarketingActivityQueryRequest request)
        {
            return await PostAsync<MarketingActivityQueryRequest, MarketingActivityQueryResponse>(request, request.Path());
        }
    }
} 